package cn.hairui.blog.service;

import cn.hairui.blog.entity.Viewrecord;
import cn.hairui.blog.dao.ViewrecordMapper;
import cn.hairui.blog.service.ViewrecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-28
 */
@Service
public class ViewrecordServiceImpl extends ServiceImpl<ViewrecordMapper, Viewrecord> implements ViewrecordService {

    @Autowired
    private ViewrecordMapper viewrecordMapper;

    @Override
    public int countViewRecord(int id) {
        return viewrecordMapper.countViewRecord(id);
    }
}
